.class final Llt/noframe/gpsfarmguide/MapClick$1;
.super Ljava/lang/Object;
.source "MapClick.java"

# interfaces
.implements Lcom/google/android/gms/maps/GoogleMap$OnMapClickListener;


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Llt/noframe/gpsfarmguide/MapClick;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x8
    name = null
.end annotation


# direct methods
.method constructor <init>()V
    .locals 0

    .line 20
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onMapClick(Lcom/google/android/gms/maps/model/LatLng;)V
    .locals 1

    .line 23
    invoke-static {}, Llt/noframe/gpsfarmguide/Data;->getInstance()Llt/noframe/gpsfarmguide/Data;

    move-result-object v0

    invoke-virtual {v0}, Llt/noframe/gpsfarmguide/Data;->getSelectedMarker()Lcom/google/android/gms/maps/model/Marker;

    move-result-object v0

    if-nez v0, :cond_0

    .line 24
    invoke-static {}, Llt/noframe/gpsfarmguide/Data;->getInstance()Llt/noframe/gpsfarmguide/Data;

    move-result-object v0

    invoke-virtual {v0}, Llt/noframe/gpsfarmguide/Data;->getCurrent_measuring()Llt/noframe/gpsfarmguide/models/MeasuringModel;

    move-result-object v0

    invoke-virtual {v0, p1}, Llt/noframe/gpsfarmguide/models/AbstractMeasuringModel;->addPoint(Lcom/google/android/gms/maps/model/LatLng;)V

    goto :goto_0

    .line 26
    :cond_0
    invoke-static {}, Llt/noframe/gpsfarmguide/utils/Drawing;->deselectMarker()V

    :goto_0
    return-void
.end method
